-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: use typescript-eslint@v6 internally #4566
build: use typescript-eslint@v6 internally #4566
Conversation
|
||
parser: '@typescript-eslint/parser', | ||
|
||
parserOptions: { | ||
project: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
project: true
is already in typescript-eslint@v5. It's just a nice way to enable parserOptions.project
😄
'@typescript-eslint/prefer-function-type': 'off', | ||
'@typescript-eslint/sort-type-constituents': 'off', | ||
'@typescript-eslint/unbound-method': 'off', | ||
'prefer-rest-params': 'off', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each of these had at least a few existing warnings, so I didn't want to overreach and solve for them without asking. Are any of these rules ones you feel particularly strongly about?
- https://typescript-eslint.io/rules/ban-ts-comment
- https://typescript-eslint.io/rules/ban-types
- https://typescript-eslint.io/rules/consistent-indexed-object-style
- https://typescript-eslint.io/rules/consistent-type-definitions
- https://typescript-eslint.io/rules/no-confusing-void-expression
- https://typescript-eslint.io/rules/no-empty-function
- https://typescript-eslint.io/rules/no-floating-promises
- https://typescript-eslint.io/rules/no-unsafe-argument
- https://typescript-eslint.io/rules/no-unsafe-assignment
- https://typescript-eslint.io/rules/no-unsafe-call
- https://typescript-eslint.io/rules/no-unsafe-member-access
- https://typescript-eslint.io/rules/no-unsafe-return
- https://typescript-eslint.io/rules/prefer-function-type
- https://typescript-eslint.io/rules/sort-type-constituents
- https://typescript-eslint.io/rules/unbound-method
- https://eslint.org/docs/latest/rules/prefer-rest-params
If not, I can go ahead and fix for all their complaints.
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 8a167d5:
|
PR Type
Does this PR add a new feature, or fix a bug?
Internal tooling. 😄
Why should this PR be included?
Checklist
New Features
Upgraded typescript-eslint to v6, with reworked ESLint configurations.
You can read https://typescript-eslint.io/blog/announcing-typescript-eslint-v6-beta#user-facing-breaking-changes for the rationale behind the config changes. Essentially, the new recommended starter configs are:
"plugin:@typescript-eslint/recommended-type-checked"
"plugin:@typescript-eslint/stylistic-type-checked"
I've commented any changes ripe for discussion internally. This one was pretty straightforward compared to others though.